package com.xy.controller;

import com.xy.annotation.TimeCost;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TimeCostController {

    @GetMapping("/time")
    @TimeCost(description = "时间统计")
    public String timeCost() throws InterruptedException {
        Thread.sleep(2000);
        return "OK";
    }
}
